-----------------------------------------------------------------------
-- File:        Dac_Controller.ads
-- Description: Provides an interface to the hardware control of the Dac 		
--              voltage control, it allows the Dac to be set and it returns
--		    the current Dac voltage of a train
--
-- Requires:    Io_Ports,Unsigned_Types,Raildefs,Dio192defs, Dda06defs,
--              Int32defs
--
--	
-- Author:     Maria Mitrevska
-----------------------------------------------------------------------

with Io_Ports;
with Unsigned_Types;
use Unsigned_Types;  -- 1.8
with Raildefs,
   Dio192defs, Dda06defs, Int32defs;
use Raildefs;

package Dac_Controller is --PROTECTED

   --Set Voltage
   procedure Set_Voltage (
         D     : in     Raildefs.Dac_Id;
         Value : in     Unsigned_8);

   --Get Voltage
   procedure Get_Voltage (
         D     : in     Raildefs.Dac_Id;
         Value :    out Unsigned_8);

end Dac_Controller;